#include"Order_Item.h"

Order_Item::Order_Item(int seat, int order, int menu_item, int qty)
  : seat_id(seat), order_id(order), menu_item_id(menu_item), prod_qty(qty) {
}

char Order_Item::seat() const {
  return seat_id;
}

int Order_Item::order() const {
  return order_id;
}

int Order_Item::menu_item() const {
  return menu_item_id;
}

int Order_Item::qty() const {
  return prod_qty;
}

bool operator==(const Order_Item& a, const Order_Item& b) {
  return a.seat() == b.seat() && a.order() == b.order() && a.menu_item() == b.menu_item() && a.qty() == b.qty();
}
